﻿<UserControl x:Class="Blacklight.ShowCase.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="Auto" Height="Auto" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
             xmlns:samples="clr-namespace:Blacklight.ShowCase.Samples"
             xmlns:controls="clr-namespace:Blacklight.Controls;assembly=Blacklight.Controls">
 
    <UserControl.Resources>

        <controls:ResourceDictionaryManager x:Key="ResourceDictionaryManager">
        <controls:ResourceDictionaryManager.ResourceDictionaries>
            <controls:ResourceDictionaryCollection>

                <controls:ResourceDictionary Path="/Blacklight.ShowCase;component/ResourceDictionaries/DavesGlossyControls.xaml">
                    <controls:ResourceDictionary.ResourceKeys>
                        <controls:ResourceKeyCollection>
                            <controls:ResourceKey ResourceName="GlossyBlackScrollViewer" />
                        </controls:ResourceKeyCollection>
                    </controls:ResourceDictionary.ResourceKeys>
                </controls:ResourceDictionary>

            </controls:ResourceDictionaryCollection>
        </controls:ResourceDictionaryManager.ResourceDictionaries>
        </controls:ResourceDictionaryManager>

        <ControlTemplate x:Key="SampleTabRadioButton" TargetType="RadioButton">
            <controls:ClippingBorder Margin="0,0,0,-5" Background="#FF000000" BorderBrush="#FF333333" BorderThickness="2,2,2,2" CornerRadius="5,5,0,0" x:Name="clippingBorder" ClipContent="True">
                <vsm:VisualStateManager.VisualStateGroups>
                    <vsm:VisualStateGroup x:Name="CheckStates">
                        <vsm:VisualState x:Name="Unchecked"/>
                        <vsm:VisualState x:Name="Checked">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="clippingBorder" Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF333333"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Indeterminate"/>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="CommonStates">
                        <vsm:VisualState x:Name="Normal"/>
                        <vsm:VisualState x:Name="MouseOver">
                            <Storyboard>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="flash" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.2"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Pressed">
                            <Storyboard>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="flash" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Disabled"/>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="FocusStates">
                        <vsm:VisualState x:Name="Unfocused"/>
                        <vsm:VisualState x:Name="Focused"/>
                    </vsm:VisualStateGroup>
                </vsm:VisualStateManager.VisualStateGroups>
                <Grid Height="Auto" Width="Auto" Margin="0,0,0,5">
                    <ContentPresenter Margin="3,3,3,3" d:LayoutOverrides="Width, Height"/>
                    <Rectangle Fill="#FFFFFFFF" Stroke="#FFFFFFFF" Margin="0,0,0,-5" x:Name="flash" Opacity="0"/>
                </Grid>
            </controls:ClippingBorder>
        </ControlTemplate>

        <ControlTemplate x:Key="NavigationRadioButtonTemplate" TargetType="RadioButton">
            <Border Padding="15,8,15,8" x:Name="rootBorder" Background="#00FFFFFF">
                <vsm:VisualStateManager.VisualStateGroups>
                    <vsm:VisualStateGroup x:Name="CommonStates">
                        <vsm:VisualState x:Name="Disabled"/>
                        <vsm:VisualState x:Name="Normal">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#00FFFFFF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="MouseOver">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#99FFFFFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#4CFFFFFF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Pressed">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#33FFFFFF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="FocusStates">
                        <vsm:VisualState x:Name="ContentFocused"/>
                        <vsm:VisualState x:Name="Unfocused"/>
                        <vsm:VisualState x:Name="Focused"/>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="CheckStates">
                        <vsm:VisualState x:Name="Unchecked"/>
                        <vsm:VisualState x:Name="Checked">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="checkedRectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#ff333333"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Indeterminate"/>
                    </vsm:VisualStateGroup>
                </vsm:VisualStateManager.VisualStateGroups>
                <Grid>
                    <Rectangle Margin="-14,-7,-14,-7" Fill="#00333333" x:Name="checkedRectangle"/>
                    <ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
                </Grid>
            </Border>
        </ControlTemplate>
        <Style x:Key="NavigationItemRadioButtonStyle" TargetType="RadioButton">
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="Template" Value="{StaticResource NavigationRadioButtonTemplate}"/>
            <Setter Property="GroupName" Value="MenuItem"/>
        </Style>

        <ControlTemplate x:Key="MenuRadioButtonTemplate" TargetType="RadioButton">
            <Border Padding="5,5,5,5" x:Name="rootBorder" Background="#00FFFFFF" CornerRadius="3,3,3,3">
                <vsm:VisualStateManager.VisualStateGroups>
                    <vsm:VisualStateGroup x:Name="CommonStates">
                        <vsm:VisualState x:Name="Disabled"/>
                        <vsm:VisualState x:Name="Normal">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#00FFFFFF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="MouseOver">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#99FFFFFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#4CFFFFFF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Pressed">
                        	<Storyboard>
                        		<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rootBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
                        			<SplineColorKeyFrame KeyTime="00:00:00" Value="#33FFFFFF"/>
                        		</ColorAnimationUsingKeyFrames>
                        	</Storyboard>
                        </vsm:VisualState>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="FocusStates">
                        <vsm:VisualState x:Name="ContentFocused"/>
                        <vsm:VisualState x:Name="Unfocused"/>
                        <vsm:VisualState x:Name="Focused"/>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="CheckStates">
                        <vsm:VisualState x:Name="Unchecked"/>
                        <vsm:VisualState x:Name="Checked">
                            <Storyboard>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="checkedRectangle" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#664792DE"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Indeterminate"/>
                    </vsm:VisualStateGroup>
                </vsm:VisualStateManager.VisualStateGroups>
                <Grid>
                    <Rectangle Margin="-4,-4,-4,-4" Fill="#004792DE" RadiusX="3" RadiusY="3" x:Name="checkedRectangle"/>
                    <ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
                </Grid>
            </Border>
        </ControlTemplate>
        <Style x:Key="MenuItemRadioButtonStyle" TargetType="RadioButton">
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="Template" Value="{StaticResource MenuRadioButtonTemplate}"/>
            <Setter Property="GroupName" Value="MenuItem"/>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" MinHeight="600" MinWidth="910" >
        <Grid.RowDefinitions>
            <RowDefinition Height="80"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
       
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF000000" Offset="1"/>
                <GradientStop Color="#FF202020" Offset="0"/>
            </LinearGradientBrush>
        </Grid.Background>
        
        <Border Margin="0,0,0,0">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF242424"/>
                    <GradientStop Color="#FF000000" Offset="0.691"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <controls:StrokeTextBlock Stroke="#ffffffff" StrokeThickness="1" StrokeOpacity="0.5"  HorizontalAlignment="Left" Margin="8,0,0,0" VerticalAlignment="Center" Width="Auto" FontFamily="Verdana" FontSize="48" Foreground="#ff000000" Text="blacklight" />
                <controls:StrokeTextBlock Stroke="#ffffffff" StrokeThickness="1" StrokeOpacity="0.5" HorizontalAlignment="Left" Margin="253,0,0,0" VerticalAlignment="Center" Width="Auto" FontFamily="Verdana" FontSize="48" Foreground="#00FFFFFF" Text="showcase " FontWeight="Normal"/>
                <StackPanel HorizontalAlignment="Right" Width="Auto" VerticalAlignment="Bottom" Margin="0,0,10,10">
                    <TextBlock Text="C U R R E N T  R E L E A S E" TextWrapping="Wrap" HorizontalAlignment="Right" FontSize="10" Margin="0,0,0,0" Foreground="#FF848484" FontFamily="Verdana"/>
                    <controls:WebLink Uri="http://www.codeplex.com/blacklight/Release/ProjectReleases.aspx" Text="Click here to download release: v3.0 (Mar09)" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,5,0,5" FontSize="12" Foreground="#FFFFFFFF" FontFamily="Verdana"/>
                </StackPanel>
            </Grid>
        </Border>
        
        <Border Grid.Row="1" BorderBrush="#ff333333" BorderThickness="0,3,0,3" Background="#cc000000"
                >
            <ItemsControl x:Name="navigationItems"
                          VerticalAlignment="Center" HorizontalAlignment="Left">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <RadioButton Margin="-1,-1,0,-1" Style="{StaticResource NavigationItemRadioButtonStyle}" Loaded="NavigationItem_Loaded" Checked="NavigationItem_Checked" >
                            <TextBlock FontFamily="Verdana" FontSize="14" Foreground="#ffffffff" Text="{Binding Name}" />
                        </RadioButton>
                            
                        </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            
        </Border>
        
        <controls:InnerGlowBorder Grid.Row="2" InnerGlowSize="0,15,0,0" ContentZIndex="1" Background="Transparent" BorderThickness="0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="270"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>

                <Grid HorizontalAlignment="Stretch" Margin="10,20,20,20" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="2" x:Name="selectedSampleGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="2" VerticalAlignment="Bottom" Height="30" Visibility="{Binding TabVisibility}">
                        <RadioButton x:Name="sampleRadioButton" Template="{StaticResource SampleTabRadioButton}" Foreground="White" Width="120" IsChecked="True" Visibility="{Binding SampleVisibility}" Checked="SampleRadioButton_Checked">
                            <TextBlock Text="Sample" FontFamily="Verdana" FontSize="12" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
                        </RadioButton>
                        <RadioButton x:Name="codeRadioButton" Template="{StaticResource SampleTabRadioButton}" Foreground="White" Width="120" Margin="-2,0,0,0" Visibility="{Binding CodeVisibility}" Checked="CodeRadioButton_Checked">
                            <TextBlock Text="Code / Info" FontFamily="Verdana" FontSize="12" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
                        </RadioButton>
                    </StackPanel>

                    <controls:InnerGlowBorder InnerGlowColor="#ff000000" InnerGlowSize="15,15,0,0" InnerGlowOpacity="0.7"
                                      Margin="0,0,0,0" Background="#FF111111" BorderBrush="#FF333333" BorderThickness="2,2,2,2" CornerRadius="5,5,5,5" Grid.Row="3">
                        <Grid Margin="0,0,0,0">
                            <Grid.Background>
                                <LinearGradientBrush EndPoint="127.499000549316,154.52799987793" StartPoint="117.924003601074,149" MappingMode="Absolute" SpreadMethod="Repeat">
                                    <GradientStop Color="#00000000"/>
                                    <GradientStop Color="#00000000" Offset="1"/>
                                    <GradientStop Color="#00000000" Offset="0.498"/>
                                    <GradientStop Color="#00000000" Offset="0.55500000715255737"/>
                                    <GradientStop Color="#FF000000" Offset="0.527999997138977"/>
                                </LinearGradientBrush>
                            </Grid.Background>
                            <Grid Margin="0,0,0,0">
                                <Grid.Background>
                                    <LinearGradientBrush EndPoint="119.947998046875,156.550994873047" StartPoint="125.474998474121,146.977005004883" MappingMode="Absolute" SpreadMethod="Repeat">
                                        <GradientStop Color="#00000000"/>
                                        <GradientStop Color="#00000000" Offset="1"/>
                                        <GradientStop Color="#00000000" Offset="0.498"/>
                                        <GradientStop Color="#00000000" Offset="0.55500000715255737"/>
                                        <GradientStop Color="#FF000000" Offset="0.527999997138977"/>
                                    </LinearGradientBrush>
                                </Grid.Background>

                                <ScrollViewer Background="Transparent" HorizontalScrollBarVisibility="Disabled" BorderThickness="0" VerticalScrollBarVisibility="Auto" Style="{StaticResource GlossyBlackScrollViewer}"
                                        Margin="-2,-2,-2,-3">
                                    <Grid>

                                        <!-- SAMPLE PAGES GO HERE -->
                                        <samples:Introduction Margin="0" x:Name="introduction" Loaded="Sample_Loaded" />
                                        <samples:WhoIsInvolved Margin="0" x:Name="whoIsInvolved" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:SampleImageViewer Source="/Images/blacklightvs2008.jpg" Margin="20" x:Name="blacklightVs" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:SampleImageViewer Source="/Images/blacklightblend.jpg" Margin="20" x:Name="blacklightBlend" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        
                                        <samples:DavesGlossyControlsSample Margin="20" x:Name="daveGlossyControlsSample" Loaded="Sample_Loaded" Visibility="Collapsed" />

                                        <samples:DragDockPanelSample Margin="20" x:Name="dragDockPanelSample" Loaded="Sample_Loaded" Visibility="Collapsed"  />
                                        <samples:OuterGlowBorderSample Margin="20" x:Name="outerGlowBorderSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:InnerGlowBorderSample Margin="20" x:Name="innerGlowBorderSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:ClippingBorderSample Margin="20" x:Name="clippingBorderSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:DropShadowTextBlockSample Margin="20" x:Name="dropShadowTextBlockSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:DropShadowBorderSample Margin="20" x:Name="dropShadowBorderSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:StrokeTextBlockSample Margin="20" x:Name="strokeTextBlockSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:SampleImageViewer Source="/Images/wpf_dragdockpanel.jpg" Margin="20" x:Name="wpfDragDockPanelSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:AnimatedLayoutPanelSample Margin="20" x:Name="animatedLayoutPanel" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:GlassBorderSample Margin="20" x:Name="glassBorderBlockSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:PerspectiveShadowBorderSample Margin="20" x:Name="perspectiveShadowBorderBlockSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:RadialShadowBorderSample Margin="20" x:Name="radialShadowBorderSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        <samples:LoadingAnimationSample Margin="20" x:Name="loadingAnimationSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                        
                                    </Grid>
                                </ScrollViewer>

                                <samples:DeepZoomViewerSample Margin="20" x:Name="deepZoomViewerSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                <samples:SyndicationFeedListBoxSample Margin="20" x:Name="syndicationFeedListBoxSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                <samples:LiveSearchListBoxSample Margin="20" x:Name="liveSearchListBoxSample" Loaded="Sample_Loaded" Visibility="Collapsed" />
                                <samples:MediaPlayerSample Margin="20" x:Name="mediaPlayerSample" Loaded="Sample_Loaded" Visibility="Collapsed" MediaSource="http://silverlight.services.live.com/11264/vlog_200808/video.wmv" />
                                <samples:MediaPlayerSample Margin="20" x:Name="animatedLayoutPanelCodePage" Loaded="Sample_Loaded" Visibility="Collapsed" MediaSource="http://silverlight.services.live.com/92125/Introduction%20to%20the%20AnimatedLayoutPanel/video.wmv" />

                            </Grid>

                        </Grid>
                    </controls:InnerGlowBorder>
                    <TextBlock HorizontalAlignment="Stretch" Margin="0,5,5,15" VerticalAlignment="Center" Width="Auto" FontFamily="Verdana" FontSize="18" Foreground="#4CFFFFFF" Text="{Binding FormattedName}" TextWrapping="Wrap"/>
                    <TextBlock HorizontalAlignment="Stretch" Margin="0,5,5,10" VerticalAlignment="Center" Width="Auto" Grid.Row="1" FontFamily="Verdana" FontSize="12" Foreground="#FFFFFFFF" Text="{Binding Description}" TextWrapping="Wrap" LineHeight="20"
                       Visibility="{Binding DescriptionVisibility}" />
                    <controls:WebLink HorizontalAlignment="Right" Margin="0,5,5,5" VerticalAlignment="Center" Width="Auto" Grid.Row="2" FontFamily="Verdana" FontSize="12" Foreground="#4CFFFFFF" Text="Click here to read more about this sample."
                              Uri="{Binding Link}"
                              Visibility="{Binding LinkVisibility}"/>

                </Grid>

                <controls:OuterGlowBorder Background="#FF333333" BorderThickness="0" CornerRadius="0,0,5,5"  OuterGlowOpacity="0.5" OuterGlowSize="15" Height="Auto" HorizontalAlignment="Stretch" Margin="20,0,10,0" VerticalAlignment="Top" Width="Auto" Grid.Row="2" >
                    <Grid VerticalAlignment="Top">

                        <ScrollViewer VerticalAlignment="Top" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" x:Name="menuItemsScrollViewer"
                                      Style="{StaticResource GlossyBlackScrollViewer}" Margin="0">
                            <ItemsControl Margin="5" x:Name="menuItems">
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <TextBlock Margin="5,5,5,5" VerticalAlignment="Center" FontFamily="Verdana" FontSize="16" Foreground="#FF989898" Text="{Binding Name}" TextWrapping="Wrap"/>
                                            <ItemsControl Margin="15,5,5,5" ItemsSource="{Binding Samples}">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <RadioButton Height="Auto" Margin="0,2,0,2" Style="{StaticResource MenuItemRadioButtonStyle}" Width="Auto" Loaded="MenuItem_Loaded" Checked="MenuItem_Checked" Unchecked="MenuItem_Unchecked">
                                                            <TextBlock FontFamily="Verdana" FontSize="12" Text="{Binding Name}" UseLayoutRounding="False" TextWrapping="Wrap" />
                                                        </RadioButton>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                        </StackPanel>
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </ScrollViewer>
                        
                        

                    </Grid>
                </controls:OuterGlowBorder>

            </Grid>
        </controls:InnerGlowBorder>
        
    </Grid>
</UserControl>